package com.bd.scm.dao.mapper.user;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bd.scm.domain.dto.user.PersonnelFilesDto;
import com.bd.scm.domain.models.user.PersonnelFiles;

import java.util.List;

public interface LeaveManagementDao {
    /**
     * 获得离职人员
     * @param Info，personnelFilesDto
     * @return
     */
    IPage<PersonnelFiles> getLeavePersonList(Page<PersonnelFiles> Info, PersonnelFilesDto personnelFilesDto);
    /**
     * 复职
     * @param personnelFilesDto
     * @return
     */
    int recoveryOccupation(PersonnelFilesDto personnelFilesDto);

    /**
     * 复职后往wt_public表添加数据
     * @param personnelFilesDto
     * @return
     */
    int insertWtPublicByLeave(PersonnelFilesDto personnelFilesDto);

    /**
     * 复职后往WT_USER_LOG表添加数据
     * @param personnelFilesDto
     * @return
     */
    int insertWtUserLogByLeave(PersonnelFilesDto personnelFilesDto);
}
